package cn.bonoon.core;

import java.util.List;

import org.batatasframework.rawdata.RawdataDefinition;

import cn.bonoon.entities.RawdataImportEntity;
import cn.bonoon.kernel.security.LogonUser;
import cn.bonoon.kernel.support.IOperator;
import cn.bonoon.kernel.support.services.SearchService;

public interface RawdataImportService extends SearchService<RawdataImportEntity>{

	List<Object> getItems(IOperator user, RawdataImportEntity entity, RawdataDefinition def,boolean filterDel);

	List<Object> getItemsByStartEnd(IOperator user, RawdataImportEntity entity,
			RawdataDefinition def, int start, int end);

	void deleteByImportItem(RawdataImportEntity rawdataImport,IOperator user, RawdataDefinition def) throws Exception;
	
	void update(IOperator user, RawdataImportEntity entity) throws Exception;

	void changeforbid(IOperator user,RawdataImportEntity rawdataImport, RawdataDefinition def);

	void recheck(RawdataImportEntity rawdataImport, IOperator user,
			RawdataDefinition def) throws Exception;

	/**
	 * 查看某一个导入结果的导入详情，把成功、无法匹配(包括身份证匹配不到，身份证匹配到了，姓名匹配不上的情况)、存疑、退回等分别显示
	 * type 
	 * 	全部  			 all
	 *	村级导入成功 	 success
	 *	匹配成功 		 success2
	 *	无法匹配 		 fail
	 *	存疑		 	 doubt
	 *	退回 			 return
	 *	重复  			 repeat
	 * 
	 */
	List<Object> getItemsByType(List<Object> list, String type);;
}
